function werr = wErr(model, model_new)

w = model.weight;
w_new = model_new.weight;

werr = sum((w - w_new).^2);